Skip to content

Handle virtual packages in dpkginfo probe#2270

Merged
jan-cerny merged 1 commit intoOpenSCAP:maint-1.3from
evgenyz:fix-virtual-packages-dpkg-1.3
Oct 20, 2025
Merged

Handle virtual packages in dpkginfo probe#2270
jan-cerny merged 1 commit intoOpenSCAP:maint-1.3from
evgenyz:fix-virtual-packages-dpkg-1.3

Conversation

@evgenyz
Copy link
Contributor

@evgenyz evgenyz commented Oct 15, 2025

Backport of #2255

This change handles virtual packages in dpkginfo probe
by parsing the "Provides" field of /var/lib/dpkg/status.

Instead of relying on the "Package" field exclusively,
this change also matches the requested package name with
the package names listed in the "Provides" field.

It should allow to query virtual package names like
"system-log-daemon" to actually installed packages
likes "rsyslog" and so on.

See deb-control(5).
@evgenyz evgenyz added this to the 1.3.13 milestone Oct 15, 2025
@evgenyz evgenyz added the 1.3 Related to OpenSCAP 1.3.x version label Oct 15, 2025
@jan-cerny
Copy link
Member

Hi, why is this code backported to maint-1.3?

@evgenyz
Copy link
Contributor Author

evgenyz commented Oct 16, 2025

Hi, why is this code backported to maint-1.3?

Because Ubuntu still uses 1.3 in older supported distros.

From original issue:

...
OpenSCAP command line tool (oscap) 1.3.7
...

@jan-cerny jan-cerny self-assigned this Oct 20, 2025
@jan-cerny jan-cerny merged commit 0726f09 into OpenSCAP:maint-1.3 Oct 20, 2025
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.3 Related to OpenSCAP 1.3.x version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants